module.exports = {
  publicPath:'./',
  configureWebpack: config => {
    config.devtool = 'source-map';
  },
  chainWebpack: config => {
    config
      .plugin('html')
      .tap(args => {
        args[0].title = '成都银行'
        return args
      })
  },

  productionSourceMap: false,
  css: {
    sourceMap: false,
    loaderOptions: {
      sass: {
        prependData: `
              @import "@/assets/style/variables.scss";
              @import "@/assets/style/reset.scss";
              `
      },
      postcss: {
        plugins: [
          require('postcss-pxtorem')({
            rootValue: 100, // 换算的基数1920/100
            minPixelValue: 2,//vue-touch-keyboard
            propList: ['*'],
            selectorBlackList: ['.hg-','simple-keyboard'],
          }),
        ]
      }
    }
  },
  devServer: {
    open: true,
    host: "0.0.0.0",
    https: false,
    hotOnly: false,
    proxy: {
      // 代理
      "/ccbpad": {
        //target:'http://58.104.171.95:8889',//xianshang
        //target: "http://10.25.0.104:8089", // huxiuqin
        target: "http://0.0.0.0", // zhoubiao
        changeOrigin: true,
        pathRewrite: {
          "^/ccbpad": ""
        }
      },
    }
  }
}
